package cn.wp.user.service;

import cn.wp.basic.exception.CustomException;
import cn.wp.basic.service.IBaseService;
import cn.wp.user.domain.WechatUser;
import cn.wp.user.dto.UserDto;

import java.util.Map;

public interface IWechatService extends IBaseService<WechatUser> {

    /**
     * 处理回调函数
     * @param map   授权码
     */
    Map<String, Object> handleCallBackMethod(Map<String, String> map);

    /**
     * 微信绑定手机号码
     * @param userDto   绑定手机时，临时数据（phone code type openid）
     * @return
     */
    Map<String,Object> binder(UserDto userDto) throws CustomException;
}
